<?php
/**
 * A Router class that can handle a file.
 * 
 * This class only checks that a file exists. It should be subclassed for specific file types.
 *
 */
class Router_File extends Router {
    /**
     * The constructor. Check that the file exists.
     * @param string $filename
     * @param string $class
     * @param string $method
     */
    public function __construct($filename, $class = false, $method = false) {
        parent::__construct($class, $method);
		if(!file_exists($filename)) {
			throw new Router_Exception("'$filename' does not exist");
		}
    }
}
?>